module cond_mask(
  input condpass,

  input i_rf_we0,
  input i_rf_we1,
  input i_ls,
  input i_pc_br,
  input i_cpsr_nzcv_we,
  input [2:0] i_cpsr_aif_we,
  input i_cpsr_mode_we,
  input [3:0] i_spsr_we,
  input [1:0] i_htrans,

  output o_rf_we0,
  output o_rf_we1,
  output o_ls,
  output o_pc_br,
  output o_cpsr_nzcv_we,
  output [2:0] o_cpsr_aif_we,
  output o_cpsr_mode_we,
  output [3:0] o_spsr_we,
  output [1:0] o_htrans
);

assign o_rf_we0 = condpass & i_rf_we0;
assign o_rf_we1 = condpass & i_rf_we1;
assign o_ls     = condpass & i_ls    ;
assign o_pc_br  = condpass & i_pc_br ;
assign o_cpsr_nzcv_we = condpass & i_cpsr_nzcv_we;
assign o_cpsr_aif_we = {3{condpass}} & i_cpsr_aif_we;
assign o_cpsr_mode_we = condpass & i_cpsr_mode_we;
assign o_spsr_we = {4{condpass}} & i_spsr_we;
assign o_htrans = {2{condpass}} & i_htrans;

endmodule
